import com.google.jplurk.*

if (plurk.plurk_type.equals(1)) {
	if (plurk.content.startsWith('/friend')) {
		println 'new friend'
		ship.addAsFriend plurk.owner_id
		ship.response plurk.plurk_id, '很高興認識你!!', Qualifier.LIKES
	}
	else if (plurk.content.startsWith('/breakup')) {
		ship.removeAsFriend plurk.owner_id
		ship.response plurk.plurk_id, '那我們分手吧!!', Qualifier.HATES
	}
}